package com.example.config.demo.controller;

import com.example.config.demo.model.Student;
import com.example.config.demo.model.Student;
import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.flyway.FlywayDataSource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class YmlController {
    @Value("${mykey}")
    private String mykey;

    @Value("${server.port}")
    private Integer serverPort;
    @Value("${string.str1}")
    private String str1;
    @Value("${string.str2}")
    private String str2;
    @Value("${string.str3}")
    private String str3;

    @Autowired
   private Student student;
    @PostConstruct
    public String readValue(){
  /*      System.out.println("==============================");
     *//*  *//**//* System.out.println(mykey);
        System.out.println(serverPort);*//**//*
        System.out.println(str1);
        System.out.println(str2);
        System.out.println(str3);*//*
        System.out.println(student);
        System.out.println("==============================");*/

        return "";
    }
}
